qt5base/qmake.conf: clear optimization related compiler flags
authorMirko Vogt <[email protected]>
Sun, 11 May 2025 23:26:29 +0000 (23:26 +0000)
committerMirko Vogt <[email protected]>
Thu, 22 May 2025 10:58:15 +0000 (10:58 +0000)
frameworks/qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf

index eff0868922265a7746e1c746346fd495a6d746f7..c82f23b7524982bdec2c42e744d75be35a88e184 100644 (file)
@@ -10,6 +10,11 @@ include(../common/linux.conf)
 include(../common/gcc-base-unix.conf)
 include(../common/g++-unix.conf)
 
+QMAKE_CFLAGS_OPTIMIZE      =
+QMAKE_CFLAGS_OPTIMIZE_FULL =
+# for whatever reasons $QMAKE_C*FLAGS_RELEASE has set optimization flags directly, instead of referencing $QMAKE_CFLAGS_OPTIMIZE*, so clearing them explicitly, too
+QMAKE_CFLAGS_RELEASE   =
+QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
 
 # modifications to gcc-base.conf (included by gcc-base-unix.conf)
 QMAKE_CFLAGS           += $$(TARGET_CFLAGS)